<style>
<!--
.leaguecell
{
width:100%;
}
.adminlist
{
width:100%;
border: 2px solid #E6E6FA;
height:80px;
background:#ECF6FF;
margin-left:10px;

opacity: 1;
}
.divhome
{

width:36%;
float:left;
margin-right:1%;
}
.divhome table
{
border: 1px  solid  #87CEFA;
}
.divright
{
width:25%;
float:right;
}
.div1
{
float:left;
width:100%;
margin-left:2%;
margin-top:15px;
}

.divhome img
{
width:40px;
height:40px;
border: 1px  solid green;
}
td
{
color:#214263;
}
tr
{
border: 2px solid #E6E6FA;
}
a
{
color:#006400;
font-size:12px;
}
.page
{
clear:both;
}
.page1
{
margin:15px 15px 15px 15px ;
clear:both;
}
.teamtbl table{
width:100%;
border: 1px  solid  #87CEFA;
}
.fill
{
background-color:#E0FFFF;
font-weight:bold;
font-size:13px;
border: 1px solid #87CEFA;
}
.fill img
{
width:100%;
height:100%;
}
.b
{
text-align:left;
}
.frontlist td
{
text-align:left;
font-size:16px;
}
b
{
font-size:14px;
}
.frontlist td a:link    {color:#00527A;}
.frontlist td a:visited {color:blue;}
.frontlist td a:hover   {color:red;}
.frontlist td a:active  {color:yellow;}
.frontlist td a {text-decoration:none;font-family:"Times New Roman", Times, serif;font-size:16px;}
.frontlist th
{
background-color:green;
height:30px;
font-size:20px;
text-indent:7px;
}
.frontlist
{
width:100%;
color:white;
margin-left:10px;
margin-top:0px;
}
-->
</style>
<?php 
defined('_JEXEC') or die('Restricted access');
$canbo=$this->canbo;
AdminUIHelper::startAdminArea ();
?>
<!-- ------------------------------------------- -->
<form name='adminFront' class="tableFront" action='index.php?option=com_svquanlycanbo&view=trangcanhan' method='post'>
<input type='hidden' name='task' />
	<div id="editcell">
		<table class='frontlist'>
			<thead>
				<tr>
					<th width="50"><?php echo JText::_('Chi tiet can bo'); ?></th>
				</tr>
			</thead>
			<tbody>
			</tbody>
		</table>
	</div>

<!-- ------------------------------------------- -->
<table class='adminlist' style="background:#E6E6FA;">
<tbody>
<?php 
	echo '<tr style="text-align:left;">'; 
		echo '<td style="width:200px;height:200px;"><img style="width:200px;height:200px;" src="../administrator/components/com_svquanlycanbo/uploads/'.$canbo->cb_hinhanh.'" /></td>';
		echo '<td>
		<div  style="margin-left:10px;">
			<b style="color:#1E90FF">Can bo :</b> <b style="font-size:20px;">'.$canbo->cb_ten.'</b>   -  <b> '.$canbo->cv_ten.' - '.$canbo->pb_ten.'</b><br/>
			<b style="color:#1E90FF">Chuc danh : '.$canbo->cd_ten.'</b><br/>
			<b style="color:#1E90FF;text-align:left;">Phone : '.$canbo->cb_sodienthoai.'</b><br/>
			<b style="color:#1E90FF">Adress : '.$canbo->cb_diachi.'</b><br/>
			<b style="color:#1E90FF">Email : '.$canbo->cb_email.'</b><br/>
			<b style="color:#1E90FF">Que quan : '.$canbo->cb_quequan.'</b><br/>
			<b style="color:#1E90FF">Nam sinh : '.$canbo->cb_namsinh.'</b><br/>
			<b style="color:#1E90FF">Dan toc : '.$canbo->cb_dantoc.'</b><br/>
			<b style="color:#1E90FF">Ton giao : '.$canbo->cb_tongiao.'</b><br/>
			<b style="color:#1E90FF">Tinh trang hon nhan : '.$canbo->cb_honnhan.'</b><br/>
		<br/>
		</div>
		<div style="float:right;"><a href="index.php?option=com_svquanlycanbo&view=canbo&action=edit&idcanbo='.$canbo->cb_id.'"><b style="color:red;">Chinh sua thong tin__</b></a></div>
		</td>';
	echo '</tr>';
?>

</tbody>
</table>
<br/><br/>
	<div>
		<table class='frontlist' style="width:100%">
			<thead>
				<tr>
					<th width="50" style="background-color:#297A52;"><?php echo JText::_('Mieu ta ngan ve can bo'); ?></th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td>
					`<?php echo $canbo->cb_mieuta; ?>
					</td>
				</tr>
			</tbody>
		</table>
		<!-- -------------------------------------- -->
		<table class='frontlist'>
			<thead>
				<tr>
					<th width="50" style="background-color:#297A52;"><?php echo JText::_('Chi tiet tai khoan'); ?></th>
				</tr>
			</thead>
			<tbody>
			</tbody>
		</table>
		<table class='frontlist' style="width:100%">
			<tbody>
				<tr>
				<td class="key"><?php echo JText::_('Name')?></td>
				<td>
					<?php echo $canbo->name; ?>
				</td>
				</tr>
				<tr>
				<td class="key"><?php echo JText::_('User name')?></td>
				<td>
					<?php echo $canbo->username; ?>
				</td>
				</tr>
				<tr>
				<td class="key"><?php echo JText::_('Password')?></td>
				<td>
					<?php echo $canbo->password; ?>
				</td>
				</tr>
				<tr>
				<td class="key"><?php echo JText::_('Vai tro')?></td>
				<td>
					<?php echo $canbo->usertype; ?>
				</td>
				</tr>
				<tr>
				<td class="key"><?php echo JText::_('Quyen truy cap')?></td>
				<td>
					<?php 
					$typeaccount=$canbo->ac_typeaccount;
					$typeaname='';
					switch($typeaccount)
					{
						case 'canbo' : $typeaname='Nhân viên'; break;
						case 'qlphong' : $typeaname='Quản trị phòng ban'; break;
						case 'qldonvi' : $typeaname='Quản trị đơn vị'; break;
						case 'admin' : $typeaname='Admin'; break;
						default: break;
					}
					echo $typeaname;
					 ?>
				</td>
				</tr>
				<tr>
				<td class="key"><?php echo JText::_('Thoi gian dang ki')?></td>
				<td>
					<?php echo $canbo->registerDate; ?>
				</td>
				</tr>
				<tr>
				<td class="key"><?php echo JText::_('Thoi gian cap nhat lan cuoi')?></td>
				<td>
					<?php echo $canbo->lastvisitDate; ?>
					<div style="float:right;"><a href="index.php?option=com_svquanlycanbo&view=trangcanhan&action=edit"><b style="color:red;">Chinh sua tai khoan__</b></a></div>
				</td>
				</tr>
			</tbody>
		</table>
	</div>
</form>


